'use strict';

module.exports = app => {
  class Controller extends app.Controller {
    async plan() {
      const message = this.ctx.args[0];
      this.service.room.prepare(message);
    }

    async start() {
      const message = this.ctx.args[0];
      this.service.room.start(message);
    }

    async bet() {
      const arg = this.ctx.args[0];
      this.service.operation.bet(arg);
    }

    async call() {
      const arg = this.ctx.args[0];
      this.service.operation.call(arg);
    }

    async discard() {
      const arg = this.ctx.args[0];
      this.service.operation.discard(arg);
    }
  }


  return Controller;
};
